/*
 * Copyright:  2018 smarabbit studio.
 *
 *  Licensed under the Confluent Community License; you may not use this file
 *  except in compliance with the License.  You may obtain a copy of the License at
 *
 *  http://www.confluent.io/confluent-community-license
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 *  WARRANTIES OF ANY KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations under the License.
 *
 *  @作   者： 黄开晖 (117227773@qq.com)
 *  @日   期:  2021年7月31日
 */
package com.massyframework.beanskin.service.adapt;

import java.util.List;
import java.util.Set;

/**
 * 适配对象工厂资源库
 * @author huangkh
 *
 */
public interface AdaptObjectFactoryRepository {
		
	/**
	 * 按{@code hostType}查找可能适配的所有类型
	 * @param hostType {@link Class},宿主类型
	 * @return {@link Set}
	 */
	Set<Class<?>> getAdaptTypes(Class<?> hostType);

	/**
	 * 根据{@code adaptType}和{@code hostType}查找所有支持适配的适配对象工厂
	 * @param adaptType {@link Class}
	 * @param hostType {@link Class}
	 * @return {@link List}
	 */
	<A> List<AdaptObjectFactory<A>> getAdaptObjectFactories(Class<A> adaptType, Class<?> hostType);
}
